home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / Icons.a < prev    next >
Encoding:
Text File  |  1998-02-12  |  19.9 KB  |  717 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Icons.a
  3. ;
  4. ;    Contains:    Icon Utilities Interfaces.
  5. ;
  6. ;    Version:    Technology:    Mac OS 8
  7. ;                Release:    Universal Interfaces 3.1
  8. ;
  9. ;    Copyright:    © 1990-1998 by Apple Computer, Inc. All rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__ICONS__') = 'UNDEFINED' THEN
  19. __ICONS__ SET 1
  20.  
  21.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  22.     include 'MacTypes.a'
  23.     ENDIF
  24.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  25.     include 'Quickdraw.a'
  26.     ENDIF
  27.     IF &TYPE('__FILES__') = 'UNDEFINED' THEN
  28.     include 'Files.a'
  29.     ENDIF
  30.     IF &TYPE('__CODEFRAGMENTS__') = 'UNDEFINED' THEN
  31.     include 'CodeFragments.a'
  32.     ENDIF
  33.  
  34.  
  35.                                                             ; The following are icons for which there are both icon suites and SICNs. 
  36. kGenericDocumentIconResource    EQU        -4000
  37. kGenericStationeryIconResource    EQU        -3985
  38. kGenericEditionFileIconResource    EQU        -3989
  39. kGenericApplicationIconResource    EQU        -3996
  40. kGenericDeskAccessoryIconResource EQU    -3991
  41. kGenericFolderIconResource        EQU        -3999
  42. kPrivateFolderIconResource        EQU        -3994
  43. kFloppyIconResource                EQU        -3998
  44. kTrashIconResource                EQU        -3993
  45. kGenericRAMDiskIconResource        EQU        -3988
  46. kGenericCDROMIconResource        EQU        -3987                ; The following are icons for which there are SICNs only. 
  47. kDesktopIconResource            EQU        -3992
  48. kOpenFolderIconResource            EQU        -3997
  49. kGenericHardDiskIconResource    EQU        -3995
  50. kGenericFileServerIconResource    EQU        -3972
  51. kGenericSuitcaseIconResource    EQU        -3970
  52. kGenericMoverObjectIconResource    EQU        -3969                ; The following are icons for which there are icon suites only. 
  53. kGenericPreferencesIconResource    EQU        -3971
  54. kGenericQueryDocumentIconResource EQU    -16506
  55. kGenericExtensionIconResource    EQU        -16415
  56. kSystemFolderIconResource        EQU        -3983
  57. kAppleMenuFolderIconResource    EQU        -3982
  58.  
  59.                                                             ; Obsolete. Use named constants defined above. 
  60. genericDocumentIconResource        EQU        -4000
  61. genericStationeryIconResource    EQU        -3985
  62. genericEditionFileIconResource    EQU        -3989
  63. genericApplicationIconResource    EQU        -3996
  64. genericDeskAccessoryIconResource EQU    -3991
  65. genericFolderIconResource        EQU        -3999
  66. privateFolderIconResource        EQU        -3994
  67. floppyIconResource                EQU        -3998
  68. trashIconResource                EQU        -3993
  69. genericRAMDiskIconResource        EQU        -3988
  70. genericCDROMIconResource        EQU        -3987
  71. desktopIconResource                EQU        -3992
  72. openFolderIconResource            EQU        -3997
  73. genericHardDiskIconResource        EQU        -3995
  74. genericFileServerIconResource    EQU        -3972
  75. genericSuitcaseIconResource        EQU        -3970
  76. genericMoverObjectIconResource    EQU        -3969
  77. genericPreferencesIconResource    EQU        -3971
  78. genericQueryDocumentIconResource EQU    -16506
  79. genericExtensionIconResource    EQU        -16415
  80. systemFolderIconResource        EQU        -3983
  81. appleMenuFolderIconResource        EQU        -3982
  82.  
  83. kStartupFolderIconResource        EQU        -3981
  84. kOwnedFolderIconResource        EQU        -3980
  85. kDropFolderIconResource            EQU        -3979
  86. kSharedFolderIconResource        EQU        -3978
  87. kMountedFolderIconResource        EQU        -3977
  88. kControlPanelFolderIconResource    EQU        -3976
  89. kPrintMonitorFolderIconResource    EQU        -3975
  90. kPreferencesFolderIconResource    EQU        -3974
  91. kExtensionsFolderIconResource    EQU        -3973
  92. kFontsFolderIconResource        EQU        -3968
  93. kFullTrashIconResource            EQU        -3984
  94.  
  95.                                                             ; Obsolete. Use named constants defined above. 
  96. startupFolderIconResource        EQU        -3981
  97. ownedFolderIconResource            EQU        -3980
  98. dropFolderIconResource            EQU        -3979
  99. sharedFolderIconResource        EQU        -3978
  100. mountedFolderIconResource        EQU        -3977
  101. controlPanelFolderIconResource    EQU        -3976
  102. printMonitorFolderIconResource    EQU        -3975
  103. preferencesFolderIconResource    EQU        -3974
  104. extensionsFolderIconResource    EQU        -3973
  105. fontsFolderIconResource            EQU        -3968
  106. fullTrashIconResource            EQU        -3984
  107.  
  108. kLarge1BitMask                    EQU        'ICN#'
  109. kLarge4BitData                    EQU        'icl4'
  110. kLarge8BitData                    EQU        'icl8'
  111. kSmall1BitMask                    EQU        'ics#'
  112. kSmall4BitData                    EQU        'ics4'
  113. kSmall8BitData                    EQU        'ics8'
  114. kMini1BitMask                    EQU        'icm#'
  115. kMini4BitData                    EQU        'icm4'
  116. kMini8BitData                    EQU        'icm8'
  117.  
  118.                                                             ; Obsolete. Use names defined above. 
  119. large1BitMask                    EQU        'ICN#'
  120. large4BitData                    EQU        'icl4'
  121. large8BitData                    EQU        'icl8'
  122. small1BitMask                    EQU        'ics#'
  123. small4BitData                    EQU        'ics4'
  124. small8BitData                    EQU        'ics8'
  125. mini1BitMask                    EQU        'icm#'
  126. mini4BitData                    EQU        'icm4'
  127. mini8BitData                    EQU        'icm8'
  128. ;   alignment type values 
  129.  
  130. kAlignNone                        EQU        $00
  131. kAlignVerticalCenter            EQU        $01
  132. kAlignTop                        EQU        $02
  133. kAlignBottom                    EQU        $03
  134. kAlignHorizontalCenter            EQU        $04
  135. kAlignAbsoluteCenter            EQU        $05
  136. kAlignCenterTop                    EQU        $06
  137. kAlignCenterBottom                EQU        $07
  138. kAlignLeft                        EQU        $08
  139. kAlignCenterLeft                EQU        $09
  140. kAlignTopLeft                    EQU        $0A
  141. kAlignBottomLeft                EQU        $0B
  142. kAlignRight                        EQU        $0C
  143. kAlignCenterRight                EQU        $0D
  144. kAlignTopRight                    EQU        $0E
  145. kAlignBottomRight                EQU        $0F
  146.  
  147.                                                             ; Obsolete. Use names defined above. 
  148. atNone                            EQU        $00
  149. atVerticalCenter                EQU        $01
  150. atTop                            EQU        $02
  151. atBottom                        EQU        $03
  152. atHorizontalCenter                EQU        $04
  153. atAbsoluteCenter                EQU        $05
  154. atCenterTop                        EQU        $06
  155. atCenterBottom                    EQU        $07
  156. atLeft                            EQU        $08
  157. atCenterLeft                    EQU        $09
  158. atTopLeft                        EQU        $0A
  159. atBottomLeft                    EQU        $0B
  160. atRight                            EQU        $0C
  161. atCenterRight                    EQU        $0D
  162. atTopRight                        EQU        $0E
  163. atBottomRight                    EQU        $0F
  164. ; typedef SInt16                         IconAlignmentType
  165.  
  166. ;   transform type values  
  167.  
  168. kTransformNone                    EQU        $00
  169. kTransformDisabled                EQU        $01
  170. kTransformOffline                EQU        $02
  171. kTransformOpen                    EQU        $03
  172. kTransformLabel1                EQU        $0100
  173. kTransformLabel2                EQU        $0200
  174. kTransformLabel3                EQU        $0300
  175. kTransformLabel4                EQU        $0400
  176. kTransformLabel5                EQU        $0500
  177. kTransformLabel6                EQU        $0600
  178. kTransformLabel7                EQU        $0700
  179. kTransformSelected                EQU        $4000
  180. kTransformSelectedDisabled        EQU        $4001
  181. kTransformSelectedOffline        EQU        $4002
  182. kTransformSelectedOpen            EQU        $4003
  183.  
  184.                                                             ; Obsolete. Use names defined above. 
  185. ttNone                            EQU        $00
  186. ttDisabled                        EQU        $01
  187. ttOffline                        EQU        $02
  188. ttOpen                            EQU        $03
  189. ttLabel1                        EQU        $0100
  190. ttLabel2                        EQU        $0200
  191. ttLabel3                        EQU        $0300
  192. ttLabel4                        EQU        $0400
  193. ttLabel5                        EQU        $0500
  194. ttLabel6                        EQU        $0600
  195. ttLabel7                        EQU        $0700
  196. ttSelected                        EQU        $4000
  197. ttSelectedDisabled                EQU        $4001
  198. ttSelectedOffline                EQU        $4002
  199. ttSelectedOpen                    EQU        $4003
  200. ; typedef SInt16                         IconTransformType
  201.  
  202. ;   Selector mask values  
  203.  
  204. kSelectorLarge1Bit                EQU        $00000001
  205. kSelectorLarge4Bit                EQU        $00000002
  206. kSelectorLarge8Bit                EQU        $00000004
  207. kSelectorSmall1Bit                EQU        $00000100
  208. kSelectorSmall4Bit                EQU        $00000200
  209. kSelectorSmall8Bit                EQU        $00000400
  210. kSelectorMini1Bit                EQU        $00010000
  211. kSelectorMini4Bit                EQU        $00020000
  212. kSelectorMini8Bit                EQU        $00040000
  213. kSelectorAllLargeData            EQU        $000000FF
  214. kSelectorAllSmallData            EQU        $0000FF00
  215. kSelectorAllMiniData            EQU        $00FF0000
  216. kSelectorAll1BitData            EQU        $00010101
  217. kSelectorAll4BitData            EQU        $00020202
  218. kSelectorAll8BitData            EQU        $00040404
  219. kSelectorAllAvailableData        EQU        $FFFFFFFF
  220.  
  221.                                                             ; Obsolete. Use names defined above. 
  222. svLarge1Bit                        EQU        $00000001
  223. svLarge4Bit                        EQU        $00000002
  224. svLarge8Bit                        EQU        $00000004
  225. svSmall1Bit                        EQU        $00000100
  226. svSmall4Bit                        EQU        $00000200
  227. svSmall8Bit                        EQU        $00000400
  228. svMini1Bit                        EQU        $00010000
  229. svMini4Bit                        EQU        $00020000
  230. svMini8Bit                        EQU        $00040000
  231. svAllLargeData                    EQU        $000000FF
  232. svAllSmallData                    EQU        $0000FF00
  233. svAllMiniData                    EQU        $00FF0000
  234. svAll1BitData                    EQU        $01010101
  235. svAll4BitData                    EQU        $02020202
  236. svAll8BitData                    EQU        $04040404
  237. svAllAvailableData                EQU        $FFFFFFFF
  238. ; typedef UInt32                         IconSelectorValue
  239.  
  240. ; typedef IconActionProcPtr             IconAction
  241.  
  242. ; typedef IconGetterProcPtr             IconGetter
  243.  
  244.     IF ¬ OLDROUTINELOCATIONS THEN
  245. CIcon                    RECORD 0
  246. iconPMap                 ds        PixMap            ; offset: $0 (0)        ; the icon's pixMap
  247. iconMask                 ds        BitMap            ; offset: $32 (50)        ; the icon's mask
  248. iconBMap                 ds        BitMap            ; offset: $40 (64)        ; the icon's bitMap
  249. iconData                 ds.l    1                ; offset: $4E (78)        ; the icon's data
  250. iconMaskData             ds.w    1                ; offset: $52 (82) <-- really an array of length one ; icon's mask and BitMap data
  251. sizeof                     EQU *                    ; size:   $54 (84)
  252.                         ENDR
  253. ; typedef struct CIcon *                CIconPtr
  254.  
  255. ; typedef CIconPtr *                    CIconHandle
  256.  
  257. ;
  258. ; pascal CIconHandle GetCIcon(SInt16 iconID)
  259. ;
  260.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  261.         _GetCIcon:    OPWORD    $AA1E
  262.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  263.         IMPORT_CFM_FUNCTION GetCIcon
  264.     ENDIF
  265.  
  266. ;
  267. ; pascal void PlotCIcon(const Rect *theRect, CIconHandle theIcon)
  268. ;
  269.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  270.         _PlotCIcon:    OPWORD    $AA1F
  271.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  272.         IMPORT_CFM_FUNCTION PlotCIcon
  273.     ENDIF
  274.  
  275. ;
  276. ; pascal void DisposeCIcon(CIconHandle theIcon)
  277. ;
  278.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  279.         _DisposeCIcon:    OPWORD    $AA25
  280.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  281.         IMPORT_CFM_FUNCTION DisposeCIcon
  282.     ENDIF
  283.  
  284.     ENDIF
  285. ;
  286. ; pascal Handle GetIcon(SInt16 iconID)
  287. ;
  288.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  289.         _GetIcon:    OPWORD    $A9BB
  290.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  291.         IMPORT_CFM_FUNCTION GetIcon
  292.     ENDIF
  293.  
  294. ;
  295. ; pascal void PlotIcon(const Rect *theRect, Handle theIcon)
  296. ;
  297.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  298.         _PlotIcon:    OPWORD    $A94B
  299.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  300.         IMPORT_CFM_FUNCTION PlotIcon
  301.     ENDIF
  302.  
  303.  
  304.  
  305. ;    Note:    IconSuiteRef and IconCacheRef should be an abstract types, 
  306. ;            but too much source code already relies on them being of type Handle.
  307. ;
  308.  
  309. ; typedef Handle                         IconSuiteRef
  310.  
  311. ; typedef Handle                         IconCacheRef
  312.  
  313. ;
  314. ; pascal OSErr PlotIconID(const Rect *theRect, IconAlignmentType align, IconTransformType transform, SInt16 theResID)
  315. ;
  316.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  317.         Macro
  318.         _PlotIconID
  319.             move.w              #$0500,D0
  320.             dc.w                $ABC9
  321.         EndM
  322.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  323.         IMPORT_CFM_FUNCTION PlotIconID
  324.     ENDIF
  325.  
  326. ;
  327. ; pascal OSErr NewIconSuite(IconSuiteRef *theIconSuite)
  328. ;
  329.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  330.         Macro
  331.         _NewIconSuite
  332.             move.w              #$0207,D0
  333.             dc.w                $ABC9
  334.         EndM
  335.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  336.         IMPORT_CFM_FUNCTION NewIconSuite
  337.     ENDIF
  338.  
  339. ;
  340. ; pascal OSErr AddIconToSuite(Handle theIconData, IconSuiteRef theSuite, ResType theType)
  341. ;
  342.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  343.         Macro
  344.         _AddIconToSuite
  345.             move.w              #$0608,D0
  346.             dc.w                $ABC9
  347.         EndM
  348.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  349.         IMPORT_CFM_FUNCTION AddIconToSuite
  350.     ENDIF
  351.  
  352. ;
  353. ; pascal OSErr GetIconFromSuite(Handle *theIconData, IconSuiteRef theSuite, ResType theType)
  354. ;
  355.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  356.         Macro
  357.         _GetIconFromSuite
  358.             move.w              #$0609,D0
  359.             dc.w                $ABC9
  360.         EndM
  361.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  362.         IMPORT_CFM_FUNCTION GetIconFromSuite
  363.     ENDIF
  364.  
  365. ;
  366. ; pascal OSErr ForEachIconDo(IconSuiteRef theSuite, IconSelectorValue selector, IconActionUPP action, void *yourDataPtr)
  367. ;
  368.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  369.         Macro
  370.         _ForEachIconDo
  371.             move.w              #$080A,D0
  372.             dc.w                $ABC9
  373.         EndM
  374.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  375.         IMPORT_CFM_FUNCTION ForEachIconDo
  376.     ENDIF
  377.  
  378. ;
  379. ; pascal OSErr GetIconSuite(IconSuiteRef *theIconSuite, SInt16 theResID, IconSelectorValue selector)
  380. ;
  381.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  382.         Macro
  383.         _GetIconSuite
  384.             move.w              #$0501,D0
  385.             dc.w                $ABC9
  386.         EndM
  387.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  388.         IMPORT_CFM_FUNCTION GetIconSuite
  389.     ENDIF
  390.  
  391. ;
  392. ; pascal OSErr DisposeIconSuite(IconSuiteRef theIconSuite, Boolean disposeData)
  393. ;
  394.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  395.         Macro
  396.         _DisposeIconSuite
  397.             move.w              #$0302,D0
  398.             dc.w                $ABC9
  399.         EndM
  400.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  401.         IMPORT_CFM_FUNCTION DisposeIconSuite
  402.     ENDIF
  403.  
  404. ;
  405. ; pascal OSErr PlotIconSuite(const Rect *theRect, IconAlignmentType align, IconTransformType transform, IconSuiteRef theIconSuite)
  406. ;
  407.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  408.         Macro
  409.         _PlotIconSuite
  410.             move.w              #$0603,D0
  411.             dc.w                $ABC9
  412.         EndM
  413.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  414.         IMPORT_CFM_FUNCTION PlotIconSuite
  415.     ENDIF
  416.  
  417. ;
  418. ; pascal OSErr MakeIconCache(IconCacheRef *theCache, IconGetterUPP makeIcon, void *yourDataPtr)
  419. ;
  420.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  421.         Macro
  422.         _MakeIconCache
  423.             move.w              #$0604,D0
  424.             dc.w                $ABC9
  425.         EndM
  426.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  427.         IMPORT_CFM_FUNCTION MakeIconCache
  428.     ENDIF
  429.  
  430. ;
  431. ; pascal OSErr LoadIconCache(const Rect *theRect, IconAlignmentType align, IconTransformType transform, IconCacheRef theIconCache)
  432. ;
  433.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  434.         Macro
  435.         _LoadIconCache
  436.             move.w              #$0606,D0
  437.             dc.w                $ABC9
  438.         EndM
  439.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  440.         IMPORT_CFM_FUNCTION LoadIconCache
  441.     ENDIF
  442.  
  443. ;
  444. ; pascal OSErr PlotIconMethod(const Rect *theRect, IconAlignmentType align, IconTransformType transform, IconGetterUPP theMethod, void *yourDataPtr)
  445. ;
  446.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  447.         Macro
  448.         _PlotIconMethod
  449.             move.w              #$0805,D0
  450.             dc.w                $ABC9
  451.         EndM
  452.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  453.         IMPORT_CFM_FUNCTION PlotIconMethod
  454.     ENDIF
  455.  
  456. ;
  457. ; pascal OSErr GetLabel(SInt16 labelNumber, RGBColor *labelColor, Str255 labelString)
  458. ;
  459.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  460.         Macro
  461.         _GetLabel
  462.             move.w              #$050B,D0
  463.             dc.w                $ABC9
  464.         EndM
  465.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  466.         IMPORT_CFM_FUNCTION GetLabel
  467.     ENDIF
  468.  
  469. ;
  470. ; pascal Boolean PtInIconID(Point testPt, const Rect *iconRect, IconAlignmentType align, SInt16 iconID)
  471. ;
  472.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  473.         Macro
  474.         _PtInIconID
  475.             move.w              #$060D,D0
  476.             dc.w                $ABC9
  477.         EndM
  478.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  479.         IMPORT_CFM_FUNCTION PtInIconID
  480.     ENDIF
  481.  
  482. ;
  483. ; pascal Boolean PtInIconSuite(Point testPt, const Rect *iconRect, IconAlignmentType align, IconSuiteRef theIconSuite)
  484. ;
  485.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  486.         Macro
  487.         _PtInIconSuite
  488.             move.w              #$070E,D0
  489.             dc.w                $ABC9
  490.         EndM
  491.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  492.         IMPORT_CFM_FUNCTION PtInIconSuite
  493.     ENDIF
  494.  
  495. ;
  496. ; pascal Boolean PtInIconMethod(Point testPt, const Rect *iconRect, IconAlignmentType align, IconGetterUPP theMethod, void *yourDataPtr)
  497. ;
  498.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  499.         Macro
  500.         _PtInIconMethod
  501.             move.w              #$090F,D0
  502.             dc.w                $ABC9
  503.         EndM
  504.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  505.         IMPORT_CFM_FUNCTION PtInIconMethod
  506.     ENDIF
  507.  
  508. ;
  509. ; pascal Boolean RectInIconID(const Rect *testRect, const Rect *iconRect, IconAlignmentType align, SInt16 iconID)
  510. ;
  511.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  512.         Macro
  513.         _RectInIconID
  514.             move.w              #$0610,D0
  515.             dc.w                $ABC9
  516.         EndM
  517.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  518.         IMPORT_CFM_FUNCTION RectInIconID
  519.     ENDIF
  520.  
  521. ;
  522. ; pascal Boolean RectInIconSuite(const Rect *testRect, const Rect *iconRect, IconAlignmentType align, IconSuiteRef theIconSuite)
  523. ;
  524.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  525.         Macro
  526.         _RectInIconSuite
  527.             move.w              #$0711,D0
  528.             dc.w                $ABC9
  529.         EndM
  530.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  531.         IMPORT_CFM_FUNCTION RectInIconSuite
  532.     ENDIF
  533.  
  534. ;
  535. ; pascal Boolean RectInIconMethod(const Rect *testRect, const Rect *iconRect, IconAlignmentType align, IconGetterUPP theMethod, void *yourDataPtr)
  536. ;
  537.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  538.         Macro
  539.         _RectInIconMethod
  540.             move.w              #$0912,D0
  541.             dc.w                $ABC9
  542.         EndM
  543.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  544.         IMPORT_CFM_FUNCTION RectInIconMethod
  545.     ENDIF
  546.  
  547. ;
  548. ; pascal OSErr IconIDToRgn(RgnHandle theRgn, const Rect *iconRect, IconAlignmentType align, SInt16 iconID)
  549. ;
  550.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  551.         Macro
  552.         _IconIDToRgn
  553.             move.w              #$0613,D0
  554.             dc.w                $ABC9
  555.         EndM
  556.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  557.         IMPORT_CFM_FUNCTION IconIDToRgn
  558.     ENDIF
  559.  
  560. ;
  561. ; pascal OSErr IconSuiteToRgn(RgnHandle theRgn, const Rect *iconRect, IconAlignmentType align, IconSuiteRef theIconSuite)
  562. ;
  563.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  564.         Macro
  565.         _IconSuiteToRgn
  566.             move.w              #$0714,D0
  567.             dc.w                $ABC9
  568.         EndM
  569.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  570.         IMPORT_CFM_FUNCTION IconSuiteToRgn
  571.     ENDIF
  572.  
  573. ;
  574. ; pascal OSErr IconMethodToRgn(RgnHandle theRgn, const Rect *iconRect, IconAlignmentType align, IconGetterUPP theMethod, void *yourDataPtr)
  575. ;
  576.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  577.         Macro
  578.         _IconMethodToRgn
  579.             move.w              #$0915,D0
  580.             dc.w                $ABC9
  581.         EndM
  582.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  583.         IMPORT_CFM_FUNCTION IconMethodToRgn
  584.     ENDIF
  585.  
  586. ;
  587. ; pascal OSErr SetSuiteLabel(IconSuiteRef theSuite, SInt16 theLabel)
  588. ;
  589.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  590.         Macro
  591.         _SetSuiteLabel
  592.             move.w              #$0316,D0
  593.             dc.w                $ABC9
  594.         EndM
  595.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  596.         IMPORT_CFM_FUNCTION SetSuiteLabel
  597.     ENDIF
  598.  
  599. ;
  600. ; pascal SInt16 GetSuiteLabel(IconSuiteRef theSuite)
  601. ;
  602.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  603.         Macro
  604.         _GetSuiteLabel
  605.             move.w              #$0217,D0
  606.             dc.w                $ABC9
  607.         EndM
  608.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  609.         IMPORT_CFM_FUNCTION GetSuiteLabel
  610.     ENDIF
  611.  
  612. ;
  613. ; pascal OSErr GetIconCacheData(IconCacheRef theCache, void **theData)
  614. ;
  615.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  616.         Macro
  617.         _GetIconCacheData
  618.             move.w              #$0419,D0
  619.             dc.w                $ABC9
  620.         EndM
  621.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  622.         IMPORT_CFM_FUNCTION GetIconCacheData
  623.     ENDIF
  624.  
  625. ;
  626. ; pascal OSErr SetIconCacheData(IconCacheRef theCache, void *theData)
  627. ;
  628.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  629.         Macro
  630.         _SetIconCacheData
  631.             move.w              #$041A,D0
  632.             dc.w                $ABC9
  633.         EndM
  634.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  635.         IMPORT_CFM_FUNCTION SetIconCacheData
  636.     ENDIF
  637.  
  638. ;
  639. ; pascal OSErr GetIconCacheProc(IconCacheRef theCache, IconGetterUPP *theProc)
  640. ;
  641.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  642.         Macro
  643.         _GetIconCacheProc
  644.             move.w              #$041B,D0
  645.             dc.w                $ABC9
  646.         EndM
  647.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  648.         IMPORT_CFM_FUNCTION GetIconCacheProc
  649.     ENDIF
  650.  
  651. ;
  652. ; pascal OSErr SetIconCacheProc(IconCacheRef theCache, IconGetterUPP theProc)
  653. ;
  654.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  655.         Macro
  656.         _SetIconCacheProc
  657.             move.w              #$041C,D0
  658.             dc.w                $ABC9
  659.         EndM
  660.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  661.         IMPORT_CFM_FUNCTION SetIconCacheProc
  662.     ENDIF
  663.  
  664. ;
  665. ; pascal OSErr PlotIconHandle(const Rect *theRect, IconAlignmentType align, IconTransformType transform, Handle theIcon)
  666. ;
  667.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  668.         Macro
  669.         _PlotIconHandle
  670.             move.w              #$061D,D0
  671.             dc.w                $ABC9
  672.         EndM
  673.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  674.         IMPORT_CFM_FUNCTION PlotIconHandle
  675.     ENDIF
  676.  
  677. ;
  678. ; pascal OSErr PlotSICNHandle(const Rect *theRect, IconAlignmentType align, IconTransformType transform, Handle theSICN)
  679. ;
  680.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  681.         Macro
  682.         _PlotSICNHandle
  683.             move.w              #$061E,D0
  684.             dc.w                $ABC9
  685.         EndM
  686.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  687.         IMPORT_CFM_FUNCTION PlotSICNHandle
  688.     ENDIF
  689.  
  690. ;
  691. ; pascal OSErr PlotCIconHandle(const Rect *theRect, IconAlignmentType align, IconTransformType transform, CIconHandle theCIcon)
  692. ;
  693.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  694.         Macro
  695.         _PlotCIconHandle
  696.             move.w              #$061F,D0
  697.             dc.w                $ABC9
  698.         EndM
  699.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  700.         IMPORT_CFM_FUNCTION PlotCIconHandle
  701.     ENDIF
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.     ENDIF ; __ICONS__ 
  715.  
  716.